{% extends "layouts/base.phtml" %}
{% block content %}
<section>
    <div class="page_title">
        <h2 class="fl">网站建议列表</h2>
    </div>
    <table class="table">
        <tr>
            <th>建议人(会员名)</th>
            <th>建议标题</th>
            <th>建议内容</th>
            <th>建议提交时间</th>
            <th>客服接待时间</th>
            <th>客服编号</th>
            <th>处理进度</th>
            <th>操作</th>
        </tr>
        <?php foreach($page->items as $item){ ?>
        <tr align="center">
            <td><?php echo $item->account; ?></td>
            <td><?php echo $item->title; ?></td>
            <td><?php echo $item->content; ?></td>
            <td><?php echo date('Y-m-d H:i',$item->create_time); ?></td>
            <td><?php if($item->handle_status==1){ ?>未处理<?php }else{ echo date('Y-m-d H:i',$item->handle_time); }?></td>
            <td><?php if($item->handle_status==1){ ?>未处理<?php }else{ echo $item->sn; }?></td>
            <td><?php if($item->handle_status==1){ ?>未处理<?php }elseif($item->handle_status==2){ ?>处理中<?php }else{ ?>已处理<?php } ?></td>
            <td>
                <a href="/suggestion/edit/<?php echo $item->id; ?>" class="inner_btn">编辑</a>
                <a href="/suggestion/del/<?php echo $item->id; ?>" class="inner_btn">删除</a>
            </td>
        </tr>
        <?php } ?>
    </table>
    <aside class="paging">
        <a href="/suggestion/index/1">第一页</a>
        <?php for($i=$startnum;$i<=$lastnum;$i++){ ?>
        <a href="/suggestion/index/<?php echo $i; ?>" <?php if($i==$currentPage){ ?> class="active" <?php } ?>><?php echo $i; ?></a>
        <?php } ?>
        <a href="/suggestion/index/<?php echo $page->last; ?>">最后一页</a>
    </aside>
</section>
{% endblock %}